package com.runfast.waimai.service.impl;

import com.runfast.common.service.BaseService;
import com.runfast.waimai.dao.mapper.BaseRolePurviewMapper;
import com.runfast.waimai.dao.model.BaseRolePurview;
import com.runfast.waimai.dao.model.BaseRolePurviewExample;
import com.runfast.waimai.service.BaseRolePurviewService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BaseRolePurviewServiceImpl extends BaseService<BaseRolePurview, Integer, BaseRolePurviewExample> implements BaseRolePurviewService {

    public List<Integer> queryPurviewIdList(Integer rid){
        BaseRolePurviewMapper baseRolePurviewMapper=(BaseRolePurviewMapper)this.mapper;
        return baseRolePurviewMapper.queryMenuIdList(rid);
    }
    public List<Integer> queryMenuIdList1(Integer rid){
        BaseRolePurviewMapper baseRolePurviewMapper=(BaseRolePurviewMapper)this.mapper;
        return baseRolePurviewMapper.queryMenuIdList1(rid);
    }
    public List<Integer> queryMenuIdList2(Integer rid){
        BaseRolePurviewMapper baseRolePurviewMapper=(BaseRolePurviewMapper)this.mapper;
        return baseRolePurviewMapper.queryMenuIdList2(rid);
    }
}